home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 15996 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.4 KB

  1. Path: news.cc.utah.edu!news
  2. From: "Marc E. Christensen" <marc@ssv1.union.utah.edu>
  3. Newsgroups: comp.lang.c++
  4. Subject: How do I create xbitmaps with greater colordepth than mono??
  5. Date: Mon, 08 Apr 1996 21:43:19 -0600
  6. Organization: University of Utah Computer Center
  7. Message-ID: <3169DCD7.3B36BBF2@ssv1.union.utah.edu>
  8. NNTP-Posting-Host: ssv1.union.utah.edu
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 3.0b2 (X11; I; Linux 1.3.80 i486)
  13.  
  14. I've been searching all day for information to create xbitmaps with more than
  15. one colordepth (mono).  New window manages (e.g. fvwm) use xbitmaps which are
  16. 8bpp (possibly more but I don't know).  I have been unsuccessful in finding any
  17. incormation on the formats for these graphics.  Xbitmaps are c code - right?
  18.  
  19. example of a mono xbm:
  20.  
  21. define directory_width 20
  22. #define directory_height 23
  23. static char directory_bits[] = {
  24.    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf8, 0x01, 0x00, 0x04, 0x02, 0x00,
  25.    0x02, 0x04, 0x00, 0x01, 0xf8, 0x01, 0x01, 0x00, 0x02, 0x01, 0x00, 0x04,
  26.    0x01, 0x00, 0x0e, 0x01, 0x00, 0x0d, 0x01, 0x00, 0x0e, 0x01, 0x00, 0x0d,
  27.    0x01, 0x00, 0x0e, 0x01, 0x00, 0x0d, 0x01, 0x00, 0x0e, 0x01, 0x00, 0x0d,
  28.    0x01, 0x00, 0x0e, 0x55, 0x55, 0x0d, 0xaa, 0xaa, 0x0e, 0xfc, 0xff, 0x07,
  29.    0xf8, 0xff, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
  30.  
  31.  
  32. Thaks,
  33. --
  34. Marc Christensen
  35. SysOp CDSS University of Utah
  36. http://ssv1.union.utah.edu
  37.